package com.cskaoyan.controller.backStage;

import com.cskaoyan.model.vo.BaseRespVO;
import com.cskaoyan.model.vo.RegionDataVO;
import com.cskaoyan.service.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
// 不授权
/**
 * @author ：王李轶群
 * @description：商场管理行政区域模块
 * @date ：5/5/22 5:23 PM
 */
@RestController
public class RegionController {
    @Autowired
    RegionService regionService;

    /**
     * 获取行政管区域信息
     * @return
     */
    @RequestMapping("admin/region/list")
    public BaseRespVO<RegionDataVO> regionList(){
        BaseRespVO<RegionDataVO> regionDataVOBaseRespVO = regionService.getregionList();
        return regionDataVOBaseRespVO;
    }

}
